

#ifndef _zdsmigr_h
#define _zdsmigr_h 1

#define zds_malloc	ucad_malloc
#define zds_free	ucad_free
#define zds__msize	ucad__msize
#define zds_realloc ucad_realloc
#define zds_calloc	ucad_calloc
#define zds_strdup	ucad__strdup

#define	zds_getappname	ucedGetAppName
#define	zds_update	ucedUpdate
#define	zds_command	ucedCommand
#define	zds_cmd	ucedCmd
#define	zds_regfunc	ucedRegFunc
#define	zds_usrbrk	ucedUsrBrk
#define	zds_defun	ucedDefun
#define	zds_setfunhelp	ucedSetFunHelp
#define	zds_undef	ucedUndef
#define	zds_getfuncode	ucedGetFunCode
#define	zds_getargs	ucedGetArgs
#define	zds_retlist	ucedRetList
#define	zds_retval	ucedRetVal
#define	zds_retpoint	ucedRetPoint
#define	zds_retstr	ucedRetStr
#define	zds_retname	ucedRetName
#define	zds_retint	ucedRetInt
#define	zds_retreal	ucedRetReal
#define	zds_rett	ucedRetT
#define	zds_retnil	ucedRetNil
#define	zds_retvoid	ucedRetVoid
#define	zds_entsel	ucedEntSel
#define	zds_nentsel	ucedNEntSel
#define	zds_nentselp	ucedNEntSelP
#define	zds_ssget	ucedSSGet

#define	zds_ssgetfirst	ucedSSGetFirst
#define	zds_sssetfirst	ucedSSSetFirst

#define	zds_ssfree	ucedSSFree
#define	zds_sslength	ucedSSLength
#define	zds_ssadd	ucedSSAdd
#define	zds_ssdel	ucedSSDel
#define	zds_ssmemb	ucedSSMemb
#define	zds_ssname	ucedSSName
#define	zds_ssnamex	ucedSSNameX
#define	zds_ssGetKwordCallbackPtr	ucedSSGetKwordCallbackPtr
#define	zds_ssSetKwordCallbackPtr	ucedSSSetKwordCallbackPtr
#define	zds_ssGetOtherCallbackPtr	ucedSSGetOtherCallbackPtr
#define	zds_ssSetOtherCallbackPtr	ucedSSSetOtherCallbackPtr
#define	zds_setvar	ucedSetVar
#define	zds_initget	ucedInitGet
#define	zds_getsym	ucedGetSym
#define	zds_putsym	ucedPutSym
#define	zds_help	ucedHelp
#define	zds_fnsplit	ucedFNSplit
#define	zds_trans	ucedTrans
#define	zds_zrxloaded	ucedZrxLoaded
#define	zds_zrxload	ucedZrxLoad
#define	zds_zrxunload	ucedZrxUnload
#define	zds_invoke	ucedInvoke
#define	zds_getvar	ucedGetVar
#define	zds_findfile	ucedFindFile
#define	zds_agetenv	ucedGetEnv
#define	zds_asetenv	ucedSetEnv
#define	zds_getenv	ucedGetEnv
#define	zds_setenv	ucedSetEnv
#define	zds_agetcfg	ucedGetCfg
#define	zds_asetcfg	ucedSetCfg
#define	zds_getcfg	ucedGetCfg
#define	zds_setcfg	ucedSetCfg
#define	zds_getstring	ucedGetString
#define	zds_getstringb	ucedGetStringB
#define	zds_menucmd	ucedMenuCmd
#define	zds_prompt	ucedPrompt
#define	zds_alert	ucedAlert
#define	zds_getangle	ucedGetAngle
#define	zds_getcorner	ucedGetCorner
#define	zds_getdist	ucedGetDist
#define	zds_getorient	ucedGetOrient
#define	zds_getpoint	ucedGetPoint
#define	zds_getint	ucedGetInt
#define	zds_getkword	ucedGetKword
#define	zds_getreal	ucedGetReal
#define	zds_getinput	ucedGetInput
#define	zds_vports	ucedVports
#define	zds_textscr	ucedTextScr
#define	zds_graphscr	ucedGraphScr
#define	zds_textpage	ucedTextPage
#define	zds_redraw	ucedRedraw
#define	zds_osnap	ucedOsnap
#define	zds_grread	ucedGrRead
#define	zds_grtext	ucedGrText
#define	zds_grdraw	ucedGrDraw
#define	zds_grvecs	ucedGrVecs
#define	zds_xformss	ucedXformSS
#define	zds_draggen	ucedDragGen
#define	zds_setview	ucedSetView
#define	zds_getfiled	ucedGetFileD
#define	zds_textbox	ucedTextBox
#define	zds_tablet	ucedTablet
#define	zds_getcname	ucedGetCName

#define	zds_xdroom	ucdbXdRoom
#define	zds_xdsize	ucdbXdSize
#define	zds_regen	ucedRegen

#ifdef __STDC__
#define zds_name_set(from, to)  (memcpy(to, from, sizeof(zds_name)))
#define zds_point_set(from,to)  (memcpy(to, from, sizeof(zds_point)))
#else
#define zds_name_set(from, to)  (*(to)= *(from), (to)[1]=(from)[1])
#define zds_point_set(from, to) (*(to)= *(from), (to)[1]=(from)[1], (to)[2]=(from)[2])
#endif  

#define zds_name_clear(name)    name[0] = name[1] = 0
#define zds_name_nil(name)      (name[0] == 0 && name[1] == 0)
#define zds_name_equal(name1, name2)  (name1[0]==name2[0] \
                                       && name1[1]==name2[1])

#define	zds_entdel	ucdbEntDel
#define	zds_entgetx	ucdbEntGetX
#define	zds_entget	ucdbEntGet
#define	zds_entlast	ucdbEntLast
#define	zds_entnext	ucdbEntNext
#define	zds_entupd	ucdbEntUpd
#define	zds_entmod	ucdbEntMod
#define	zds_entmake	ucdbEntMake
#define	zds_entmakex	ucdbEntMakeX
#define	zds_tblnext	ucdbTblNext
#define	zds_tblsearch	ucdbTblSearch
#define	zds_namedobjdict	ucdbNamedObjDict
#define	zds_dictsearch	ucdbDictSearch
#define	zds_dictnext	ucdbDictNext
#define	zds_dictrename	ucdbDictRename
#define	zds_dictremove	ucdbDictRemove
#define	zds_dictadd	ucdbDictAdd
#define	zds_tblobjname	ucdbTblObjName
#define	zds_handent	ucdbHandEnt
#define	zds_inters	ucdbInters
#define	zds_snvalid	ucdbSNValid
#define	zds_xstrsave	ucdbXStrSave
#define	zds_xstrcase	ucdbXStrCase
#define	zds_regapp	ucdbRegApp
#define	zds_fail	ucdbFail
#define	zds_angtos	ucdbAngToS
#define	zds_rangtos	ucdbRawAngToS
#define	zds_rtos	ucdbRToS
#define	zds_angtof	ucdbAngToF
#define	zds_rangtof	ucdbRawAngToF
#define	zds_distof	ucdbDisToF

#define zds_regappx(appname, xsave12)   ucdbRegApp(appname)

#define	zds_printf	ucutPrintf
#define	zds_cvunit	ucutCvUnit
#define	zds_wcmatch	ucutWcMatch
#define	zds_angle	ucutAngle
#define	zds_distance	ucutDistance
#define	zds_polar	ucutPolar
#define	zds_isalpha	ucutIsAlpha
#define	zds_isupper	ucutIsUpper
#define	zds_islower	ucutIsLower
#define	zds_isdigit	ucutIsDigit
#define	zds_isxdigit	ucutIsXDigit
#define	zds_isspace	ucutIsSpace
#define	zds_ispunct	ucutIsPunct
#define	zds_isalnum	ucutIsAlNum
#define	zds_isprint	ucutIsPrint
#define	zds_isgraph	ucutIsGraph
#define	zds_iscntrl	ucutIsCntrl
#define	zds_toupper	ucutToUpper
#define	zds_tolower	ucutToLower
#define	zds_newrb	ucutNewRb
#define	zds_relrb	ucutRelRb
#define	zds_buildlist	ucutBuildList

#endif 
